<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动布局练习</title>
    <style>
        .box {
            width: 960px;
            height: 360px;
            background-color: #adc6ff;
            margin: 0 auto;
        }

        .left {
            float: left;
            width: 180px;
            height: 360px;
            background-color: #57a3f3;
        }

        .right {
            float: left;
            width: 780px;
            height: 360px;
            background-color: #47cb89;
        }

        /*分割符*/
        * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        .ul-box {
            width: 1226px;
            height: 285px;
            background-color: #ffd77a;
            margin: 30px auto 0;
        }

        .ul-box li {
            width: 296px;
            height: 285px;
            background-color: coral;
            float: left;
            margin-right: 14px;
        }

        /*分割符*/
        .thread-box {
            width: 1226px;
            height: 615px;
            background-color: forestgreen;
            margin: 30px auto 0;
        }

        .thread-left {
            float: left;
            width: 234px;
            height: 615px;
            background-color: #dcdee2;
        }

        .thread-right {
            float: left;
            width: 992px;
            height: 615px;
            background-color: #ebf7ff;
        }

        .thread-box .thread-right>div {
            float: left;
            width: 234px;
            height: 300px;
            background-color: cornsilk;
            margin-left: 14px;
            margin-bottom: 14px;
        }
    </style>
</head>
<body>

<div class="box">
    <div class="left">左侧</div>
    <div class="right">右侧</div>
</div>

<ul class="ul-box">
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li style="margin-right: 0">4</li>
</ul>

<div class="thread-box">
    <div class="thread-left">left</div>
    <div class="thread-right">
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
        <div>6</div>
        <div>7</div>
        <div>8</div>
    </div>
</div>

</body>
</html>